package com.yin.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.yin.interceptor.JwtInterceptor;

/**
*@author LSY
*Time: 2018年12月27日下午4:47:54
*
*
*/
@Configuration
public class JwtConfiguration implements WebMvcConfigurer{

	@Override
	public void addInterceptors(InterceptorRegistry registory) {
		registory.addInterceptor(new JwtInterceptor()).addPathPatterns("/api/**");
	}
}
